package org.example.travel_web.exception;


import org.example.travel_web.dto.ErrorCode;

public class AuthException extends RunException {

    public AuthException(ErrorCode errorCode) {
        super(errorCode);
    }

    public AuthException() {
        super(new ErrorCode(401, "用户名或密码错误"));
    }

    public AuthException(String message) {
        super(401, message);
    }

    public AuthException(Integer code, String message) {
        super(code, message);
    }

    public AuthException(Integer code) {
        super(code, "认证失败");
    }
}
